/* 结算页面整体样式 */
.checkout-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    font-family: "Microsoft YaHei", sans-serif;
}

.checkout-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.checkout-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: normal;
}

/* 各个区块通用样式 */
.address-section,
.product-section,
.payment-section,
.remark-section {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* 收货地址区块 */
.add-address-btn {
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #1E9FFF;
    color: #1E9FFF;
    border-radius: 4px;
    cursor: pointer;
}

.address-list {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
}

.address-item {
    position: relative;
    width: calc(33.33% - 20px);
    margin: 0 10px 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.address-item:hover {
    border-color: #1E9FFF;
}

.address-item.selected {
    border-color: #1E9FFF;
    background-color: #f0f9ff;
}

.address-item.selected:before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent #1E9FFF transparent;
}

.address-item.selected:after {
    content: '\e605';
    font-family: 'layui-icon';
    position: absolute;
    right: 2px;
    bottom: 2px;
    color: #fff;
    font-size: 12px;
}

.address-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.address-phone {
    color: #666;
    margin-bottom: 5px;
}

.address-detail {
    color: #666;
    margin-bottom: 5px;
}

.address-actions {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
}

.address-actions .btn-link {
    color: #1E9FFF;
    cursor: pointer;
}

.address-actions .default-tag {
    color: #FF5722;
    font-size: 12px;
}

/* 商品信息区块 */
.product-list {
    padding: 15px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
}

.product-table th {
    padding: 10px;
    text-align: center;
    background-color: #f9f9f9;
    color: #666;
    font-weight: normal;
}

.product-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
}

.product-info-col {
    width: 50%;
    text-align: left;
}

.price-col, .quantity-col, .subtotal-col {
    width: 16.66%;
}

.product-info {
    display: flex;
    align-items: center;
}

.product-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border: 1px solid #eee;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
}

.product-title {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.product-author {
    font-size: 12px;
    color: #999;
}

.product-price {
    color: #666;
}

.product-quantity {
    color: #666;
}

.product-subtotal {
    color: #FF5722;
    font-weight: bold;
}

/* 支付方式区块 */
.payment-options {
    display: flex;
    padding: 15px;
}

.payment-option {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 30px;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: #1E9FFF;
}

.payment-option.active {
    border-color: #1E9FFF;
    background-color: #f0f9ff;
}

.payment-option i {
    display: none;
    position: absolute;
    right: 5px;
    bottom: 5px;
    color: #1E9FFF;
}

.payment-option.active i {
    display: block;
}

.payment-option span {
    margin-left: 5px;
}

/* 订单备注区块 */
.remark-input {
    padding: 15px;
}

.remark-input textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    resize: none;
    outline: none;
}

/* 订单汇总区块 */
.order-summary {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    color: #666;
}

.summary-item span:first-child {
    margin-right: 10px;
}

.summary-item.total {
    font-size: 18px;
    color: #333;
}

.final-price {
    color: #FF5722;
    font-weight: bold;
}

.summary-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.submit-order-btn {
    padding: 10px 30px;
    background-color: #FF5722;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-order-btn:hover {
    background-color: #f84c0e;
}

/* 地址表单弹窗 */
.address-form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input[type="text"] {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    outline: none;
}

.region-select {
    display: flex;
}

.region-select select {
    flex: 1;
    height: 36px;
    margin-right: 10px;
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    outline: none;
}

.region-select select:last-child {
    margin-right: 0;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    margin-right: 5px;
}